package com.cw1.adapter.objectadapter;

import com.cw1.adapter.classadapter.Voltage220V;

/**
 * @Author qiuMi
 * @description 适配器 - 客户端
 * @Date 2022-11-06 17:50
 **/
public class Client {
    public static void main(String[] args) {
        System.out.println("适配器模式");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
